<template>
  <div>欢迎！</div>
</template>

<script setup>
const pdata = inject('P_DATA')

watch(
  pdata,
  (newVal) => {
    console.log('newVal :>> ', newVal)
  },
  { deep: true, immediate: true }
)
</script>

<style></style>
